package org.sun.basic.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="t_group")
public class Group {

	private String id;
	private String grpname;
	private String grpcode;
	private String remark;
	
	public Group() {
	}

	public Group(String id, String grpname, String grpcode, String remark) {
		super();
		this.id = id;
		this.grpname = grpname;
		this.grpcode = grpcode;
		this.remark = remark;
	}

	@Id
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name="grp_name")
	public String getGrpname() {
		return grpname;
	}

	public void setGrpname(String grpname) {
		this.grpname = grpname;
	}

	@Column(name="grp_code")
	public String getGrpcode() {
		return grpcode;
	}

	public void setGrpcode(String grpcode) {
		this.grpcode = grpcode;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	public String toString() {
		return "Group [id=" + id + ", grpname=" + grpname + ", grpcode=" + grpcode + ", remark=" + remark + "]";
	}
	
	
	
}
